\testfile{pgfplotstest.logplotenv.tex}

\testsection{Default options log plot}
\testsubsection{Default size}
\starttikzpicture
\startloglogaxis
\loglogtestplot
\stoploglogaxis
\stoptikzpicture

\testsubsection{Small size}
\starttikzpicture
\startloglogaxis[width=6cm]
\loglogtestplot
\stoploglogaxis
\stoptikzpicture
%
\starttikzpicture
\startloglogaxis[width=6cm]
\addplot plot coordinates {
	(5,	8.311600e-03)
	(9217,	3.261015e-07)
};
\stoploglogaxis
\stoptikzpicture

\starttikzpicture
\startloglogaxis[width=6cm,ytick={1.0e0,1e-2,1e-4}]
\addplot plot coordinates {
	(5,	1.1e-00)
	(9217,	1e-05)
};
\stoploglogaxis
\stoptikzpicture

\testsubsection{Very small size}
\starttikzpicture
\startloglogaxis[width=4cm]
\loglogtestplot
\stoploglogaxis
\stoptikzpicture

\testsubsection{Large size}
\starttikzpicture
\startloglogaxis[width=13cm]
\loglogtestplot
\stoploglogaxis
\stoptikzpicture

\testsubsection{Large size; large range}
\starttikzpicture
\startloglogaxis[width=13cm]
\addplot coordinates {
	(1e0,1e12)
	(1e16,1e-12)
};
\stoploglogaxis
\stoptikzpicture


\testsubsection{Extremely small y range for log plot}
\testsubsubsection{Without extra ticks, enlargelimits=false}
\starttikzpicture
\startloglogaxis[
	enlargelimits=false,
]
\addplot coordinates {
	(1e0,1.5e-4)
	(1e24,2e-3)
};
\stoploglogaxis
\stoptikzpicture

\testsubsubsection{With extra ticks, enlargelimits=false}
extra y ticks=\{2e-4,3e-4,4e-4,5e-4,6e-4,7e-4,8e-4,9e-4,1.2e-3\}

\starttikzpicture
\startloglogaxis[
	enlargelimits=false,
	extra y ticks={2e-4,3e-4,4e-4,5e-4,6e-4,7e-4,8e-4,9e-4,1.2e-3},
]
\addplot coordinates {
	(1e0,1.5e-4)
	(1e24,2e-3)
};
\stoploglogaxis
\stoptikzpicture

\testsection{Semilogy plot}
\starttikzpicture
	\startsemilogyaxis[xlabel=Index,ylabel=Value]
	\addplot[color=blue,mark=*] plot coordinates {
		(1,8)
		(2,16)
		(3,32)
		(4,64)
		(5,128)
		(6,256)
		(7,512)
	};
	\stopsemilogyaxis
\stoptikzpicture

\testsection{Semilogx plot}
\starttikzpicture
	\startsemilogxaxis[xlabel=Index,ylabel=Value]
	\addplot[color=blue,mark=*] plot coordinates {
		(8,1)
		(16,2)
		(32,3)
		(64,4)
		(128,5)
		(256,6)
		(512,7)
	};
	\stopsemilogxaxis
\stoptikzpicture

\testsubsection{Extra ticks}
Options:

extra x ticks=\{6e0,9e0,2e1,3e1,4e1,5e2,6e2,7e2,8e2,9e2\},

extra x tick style=\{/pgf/number format/sci subscript,font=footnotesize\},

\starttikzpicture
	\startsemilogxaxis[xlabel=Index,ylabel=Value,
		width=13cm,
		extra x ticks={6e0,9e0,2e1,3e1,4e1,5e2,6e2,7e2,8e2,9e2},
		extra x tick style={/pgf/number format/sci subscript,font=\switchtobodyfont[small]},
	]
	\addplot[color=blue,mark=*] plot coordinates {
		(8,1)
		(16,2)
		(32,3)
		(64,4)
		(128,5)
		(256,6)
		(512,7)
	};
	\stopsemilogxaxis
\stoptikzpicture
